package com.cockybook.poemspider.beans;

import javax.persistence.*;
import java.util.Date;

@Entity
public class Poet {
    @Id
    private int id;
    private String name;
    private String zi;
    private String hao;
    private String nickname;

    private String birthdy;
    private String deathday;

    private int total;

    private String headerImgUrl;


    private String dynasty;//朝代
    private String dynastyReal;//朝代

    @Column(columnDefinition = "text")
    private String introduction;

    private String memo;


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getZi() {
        return zi;
    }

    public void setZi(String zi) {
        this.zi = zi;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getBirthdy() {
        return birthdy;
    }

    public void setBirthdy(String birthdy) {
        this.birthdy = birthdy;
    }

    public String getDeathday() {
        return deathday;
    }

    public void setDeathday(String deathday) {
        this.deathday = deathday;
    }

    public String getDynasty() {
        return dynasty;
    }

    public void setDynasty(String dynasty) {
        this.dynasty = dynasty;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }


    @Override
    public String toString() {
        return "Poet{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", zi='" + zi + '\'' +
                ", hao='" + hao + '\'' +
                ", nickname='" + nickname + '\'' +
                ", birthdy='" + birthdy + '\'' +
                ", deathday='" + deathday + '\'' +
                ", total=" + total +
                ", headerImgUrl='" + headerImgUrl + '\'' +
                ", dynasty='" + dynasty + '\'' +
                ", dynastyReal='" + dynastyReal + '\'' +
                ", introduction='" + introduction + '\'' +
                ", memo='" + memo + '\'' +
                '}';
    }

    public String getDynastyReal() {
        return dynastyReal;
    }

    public void setDynastyReal(String dynastyReal) {
        this.dynastyReal = dynastyReal;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public String getHao() {
        return hao;
    }

    public void setHao(String hao) {
        this.hao = hao;
    }

    public String getHeaderImgUrl() {
        return headerImgUrl;
    }

    public void setHeaderImgUrl(String headerImgUrl) {
        this.headerImgUrl = headerImgUrl;
    }
}
